package cn.spike.rockcc.service;

import cn.spike.rockcc.domain.CourseOrder;
import cn.spike.rockcc.domain.PayOrder;
import cn.spike.rockcc.dto.CourseOrderDto;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author spike
 * @since 2023-03-20
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String createOrder(CourseOrderDto courseOrderDto);

    void createCourseOrder(CourseOrder courseOrder);

    void updateCourseOrderByPayOrder(PayOrder payOrder);

    CourseOrder selectByOrderNo(String orderNo);

    void orderTimeOut(CourseOrder courseOrder);

    List<CourseOrder> selectOrderByUser();

    void cancelOrder(String orderNo);

    void updateOrderAndItems(CourseOrder courseOrder);

    String killPlaceOrder(CourseOrderDto courseOrderDto);
}
